package com.neo.push.core.connection;

import com.neo.push.core.RegisterMessage;

/**
 * Created by lock on 17-7-31.
 */
public interface ConnectionListener {


    /**
     * 连接注册
     * @param connection            哪个连接
     * @param registerMessage       注册信息
     */
    void register(SocketConnection connection, RegisterMessage registerMessage);



    /**
     * 连接已关闭
     * @param connection            哪个链接被关闭
     */
    void closed(SocketConnection connection);




}
